function isEmpty() {
    var username = document.getElementById("username");
    var password = document.getElementById("password");
    if (username.value.length === 0 || password.value.length === 0) {
        window.alert("不能为空");
        return false;
    }
    return true;
}

